import Cookies from 'js-cookie'

const TokenKey = 'vue_sunlead-logistics_token'
const user = 'vue_sunlead-logistics_userInfo'
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function setUser(userInfo) {
  return Cookies.set(user, userInfo)
}
export function getUser() {
  return Cookies.get(user)
}
export function removeUser() {
  return Cookies.remove(user)
}
